<?php
/* @var $this ProcesoController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'Procesos',
);

$this->menu=array(
	array('label'=>'Crear Proceso', 'url'=>array('create')),
	array('label'=>'Administrar Proceso', 'url'=>array('admin')),
);

?>
<div align="rigth">

<?php
    $this->widget('ext.PageSize.EpageSize', array(
    'listViewId' => 'proceso-view',
	'beforeLabel'=>'Registros por pagina',
    'pageSize' => Yii::app()->request->getParam('pageSize',null),
    'defaultPageSize' =>  5 ,   // may use this :  Yii::app()->params['defaultPageSize'],
    'pageSizeOptions'=> array(5=>5, 10=>10, 25=>25, 50=>50, 75=>75, 100=>100), // you can config it in main.php under the config dir . Yii::app()->params['pageSizeOptions'],// Optional, you can use with the widget default
    ));
    ?>
 
 
<?php
$dataProvider = $model->search();
$pageSize = Yii::app()->user->getState('pageSize',5/*Yii::app()->params['defaultPageSize']*/);
$dataProvider->getPagination()->setPageSize($pageSize);

 ?>


</div>

<h1>Procesos</h1>

<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
	'id'=>'proceso-view',
)); ?>
